<div class="span9">
<form method="post"  action="" enctype="multipart/form-data">
  <fieldset>
    <legend>Viết blog</legend>
    <label>Tiêu đề</label>
    <input type="text" placeholder="Tiêu đề blog" name="title" class="span12" maxlength="100" style="margin-bottom:0;" value="<?php echo $this->title; ?>">
    <?php if (!empty($this->error['title'])) {?>
    	<span class="help-inline fix-help"><?php echo $this->error['title']; ?></span>
    <?php } ?>
    <div class="clear_2"></div>
    <label>Nội dung</label>
    <textarea class="ckeditor" name="content"><?php echo $this->content; ?></textarea>
    <?php if (!empty($this->error['content'])) {?>
    	<span class="help-inline fix-help"><?php echo $this->error['content']; ?></span>
    <?php } ?>
    <div class="clear_2"></div>    
    <label>Hình đại diện (Hỗ trợ : gif, png , jpeg)</label>
    <input type="file" title="Hình đại diện" id="image" name="image" size="34">
    <?php if (!empty($this->error['image'])) {?>
    	<div class="clear"></div><span class="help-inline fix-help"><?php echo $this->error['image']; ?></span>
    <?php } ?>    
    <div class="clear_2"></div>
    <button type="submit" class="btn">Lưu</button>
  </fieldset>
</form>	
</div><!--/span-->
<div class="span3">
<?php if (!empty($_SESSION['logginUser'])){?>
  <div>
    <p>Chào <a href="/blog/index/usid/<?php echo $_SESSION['logginUser']['uid']; ?>"><?php echo $_SESSION['logginUser']['fullname']; ?></a></p>
  </div>
  <?php }?>
    <ul class="thumbnails">
      <li class="span12">
        <div class="thumbnail">
          <img data-src="holder.js/300x200" alt="" src="<?php echo $this->userInfo['avatar'];?>">
          <h5 style="text-align:center"><a href="<?php echo $this->userInfo['profile_url'];?>"><?php echo $this->userInfo['fullname'];?></a></h5>
          <p style="text-align:center">Tổng số blog: <a href="/blog/index/usid/<?php echo $this->usid; ?>"><?php echo $this->totalBlog ?></a></p>
        </div>
      </li>   
    </ul>

	<img data-src="holder.js/300x200" alt="" src="/img/cunghoangdao320x222.gif">

  
</div><!--/span-->